package com.xxbb.chapter_1.dome4_GuessTheNumber;

import java.util.Scanner;

public class Program {
    public static void main(String[] args) {
        System.out.println("《猜字游戏》");
        System.out.println("游戏说明：请输入0-100的数字");
        while (true){
            System.out.println("请输入相应数字进行操作：");
            System.out.println("【1】开始游戏");
            System.out.println("【0】退出游戏");
            Scanner sc=new Scanner(System.in);
            int number=sc.nextInt();
            switch (number){
                case 1:
                    RandomNumber randomNumber = new RandomNumber();
                    randomNumber.start();
                    break;
                case 2:
                    return;
            }
        }
    }
}
